package session1.examples.chap1;

public class Eg1 {
	public static void main(String[] args) {
		int i=0;
		CustomThread customThread=new CustomThread("Thread A");
		customThread.start();
		while (i++<3)
			System.out.println("Main Output No."+i);
	}
}
class CustomThread extends Thread{
	public CustomThread(String name) {
		super(name);
	}
	@Override
	public void run() {
		int i=0;
		while (i++<6)
			System.out.println(getName()+" Output No."+i);
	}
}
